<?php
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */
$menu = <<<MENU

[

    {
        "path": "live/list",
        "name": "LiveList",
        "component": "/application/live/list",
        "meta": {
        "keepAlive": true,
        "title": "AppManage",
        "isOnly": false,
        "auth": [],
        "pagePermission": [{
            "title": "LiveList",
            "index": 0,
            "url": "/app/live/list",
            "auth": ["view", "add", "edit", "del", "outport"]
            }
        ]}
    }

]
MENU;

$menus = <<<MENU

{
 "path": "/live",
 "component": "Layout",
 "redirect": "/live/list",
 "meta": {
  "menuName": "Live",
  "icon": "iconzhibo1",
  "subNavName": [{
   "name": "LiveManage",
   "url": [{
    "name": "LiveList",
    "url": "/live/list"
   }]
  }]
 },
 "children": [{
  "path": "list",
  "name": "LiveManage",
  "component": "/application/live/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "LiveManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "LiveList",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }]
}
MENU;

$app_name = config('app.AdminModelList')['app_model_name'];

$menu = $app_name=='longbing_liveshop'?$menus:$menu;

return ["livevideo" => $menu];


